<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <style type="text/css" media="all">

        .ui-panelgrid td{
            border: none !important;
        }

        .ui-widget-content .ui-panelgrid-even{
            border: none !important;
        }

        .ui-widget-content .ui-panelgrid-odd{
            border: none !important;
        }

    </style>
    <ui:composition>

        <p:dialog id="ContratadaPjEditDlg" widgetVar="ContratadaPjEditDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.EditContratadaPjTitle}">
            <h:form id="ContratadaPjEditForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{contratadaPjController.selected != null}">
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_cdCnpjContratadaPj}" for="cdCnpjContratadaPj" />
                            </p:column>
                            <p:column>
                                <p:inputMask mask="99.999.999/9999-99" converter="cnpjConverter" id="cdCnpjContratadaPj" value="#{contratadaPjController.selected.cdCnpjContratadaPj}" title="#{bundle.EditContratadaPjTitle_cdCnpjContratadaPj}" required="true" requiredMessage="#{bundle.EditContratadaPjRequiredMessage_cdCnpjContratadaPj}"/>
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_nmRazaoSocial}" for="nmRazaoSocial" />
                            </p:column>
                            <p:column>
                                <p:inputText id="nmRazaoSocial" value="#{contratadaPjController.selected.nmRazaoSocial}" title="#{bundle.EditContratadaPjTitle_nmRazaoSocial}" required="true" requiredMessage="#{bundle.EditContratadaPjRequiredMessage_nmRazaoSocial}"/>
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_edContratada}" for="edContratada" />
                            </p:column>
                            <p:column>
                                <p:inputText id="edContratada" value="#{contratadaPjController.selected.edContratada}" title="#{bundle.EditContratadaPjTitle_edContratada}" />
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_nmCidade}" for="nmCidade" />
                            </p:column>
                            <p:column>
                                <p:inputText id="nmCidade" value="#{contratadaPjController.selected.nmCidade}" title="#{bundle.EditContratadaPjTitle_nmCidade}" />
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_sgUf}" for="sgUf" />
                            </p:column>
                            <p:column>
                                <p:inputText id="sgUf" value="#{contratadaPjController.selected.sgUf}" title="#{bundle.EditContratadaPjTitle_sgUf}" />
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_cdCep}" for="cdCep" />
                            </p:column>
                            <p:column>
                                <p:inputText id="cdCep" value="#{contratadaPjController.selected.cdCep}" title="#{bundle.EditContratadaPjTitle_cdCep}" />
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_nuTelefone}" for="nuTelefone" />
                            </p:column>
                            <p:column>
                                <p:inputText id="nuTelefone" value="#{contratadaPjController.selected.nuTelefone}" title="#{bundle.EditContratadaPjTitle_nuTelefone}" />
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_nuFax}" for="nuFax" />
                            </p:column>
                            <p:column>
                                <p:inputText id="nuFax" value="#{contratadaPjController.selected.nuFax}" title="#{bundle.EditContratadaPjTitle_nuFax}" />
                            </p:column>
                        </p:row>
                        <p:row>
                            <p:column>
                                <p:outputLabel value="#{bundle.EditContratadaPjLabel_nmEmail}" for="nmEmail" />
                            </p:column>
                            <p:column>
                                <p:inputText id="nmEmail" value="#{contratadaPjController.selected.nmEmail}" title="#{bundle.EditContratadaPjTitle_nmEmail}" />
                            </p:column>
                        </p:row>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{contratadaPjController.update}" value="#{bundle.Save}" update="display,:ContratadaPjListForm:datalist,:growl" oncomplete="handleSubmit(args, 'ContratadaPjEditDialog');"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="ContratadaPjEditDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
